package com.lzx.controller;


import com.alibaba.fastjson.JSONObject;
import com.lzx.model.FileEntity;
import com.lzx.model.zjwd.Nztj;
import com.lzx.model.zjwd.Zjwd;
import com.lzx.model.zjwd.Zjxx;
import com.lzx.service.FileEntityService;
import com.lzx.service.jzny.JznyService;
import com.lzx.service.zjwd.NztjService;
import com.lzx.service.zjwd.ZjwdService;
import com.lzx.service.zjwd.ZjxxService;
import com.lzx.utils.MethodUtil;
import com.lzx.utils.StringUtils;
import com.lzx.utils.UuidUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * @描述 专家问答
 * @参数
 * @返回值
 * @创建人 gyl
 * @创建时间 2018/8/1
 * @修改人和其它信息
 */
@RestController
@RequestMapping("/sy")
public class shujuController {
    @Autowired
    JznyService jznyService;
    @Autowired
    private FileEntityService fileEntityService;

    //date-------181117183130
    @RequestMapping("/shuju")
    public void  zjwd(String data,String date,String userkey) throws SQLException {
        try {
            jznyService.insertshuju(data,userkey,date);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }



}
